from PyQt5 import QtWidgets
from PyQt5 import QtCore
from res.ui import waiting


class waitwgt(QtWidgets.QWidget):
    def __init__(self, hint:str=""):
        super().__init__()
        ui = waiting.Ui_Form()
        ui.setupUi(self)
        self.setWindowFlags(QtCore.Qt.CustomizeWindowHint |
            QtCore.Qt.WindowMinimizeButtonHint)
        if hint != "": ui.label.setText(hint)
        self.ui = ui
